/***********************************************************************
 * Module:  Line.java
 * Author:  gdut5276
 * Purpose: Defines the Class Line
 ***********************************************************************/

package com.lfywork.bingo.web.ui;

import java.util.*;
import javax.servlet.jsp.tagext.TagSupport;

/** @pdOid a81b6f95-84e3-41a7-bd7b-720b2e3ec5c3 */
public class Line extends TagSupport {
   /** @pdOid e1c9527a-65d0-4c15-861d-8dc989847b68 */
   private List<Field> fields;
   
   /** @pdRoleInfo migr=no name=Field assc=association3 coll=java.util.Collection impl=java.util.HashSet mult=0..* */
   public java.util.Collection<Field> field;
   
   /** @exception javax.servlet.jsp.JspException
    * @pdOid 3e5ab463-4856-4b29-85f1-c2b7d3bf0162 */
   public int doStartTag() throws javax.servlet.jsp.JspException {
      // TODO: implement
      return 0;
   }
   
   /** @exception javax.servlet.jsp.JspException
    * @pdOid 2566c5be-6335-4a79-beff-92f64e70d3d7 */
   public int doEndTag() throws javax.servlet.jsp.JspException {
      // TODO: implement
      return 0;
   }
   
   /** @pdOid 7464ec2f-e32a-4334-9c42-2acab2158381 */
   public List<Field> getFields() {
      return fields;
   }
   
   /** @param newFields
    * @pdOid f24859ca-9ec5-4c7f-86ff-59aa32681b5d */
   public void setFields(List<Field> newFields) {
      fields = newFields;
   }
   
   
   /** @pdGenerated default getter */
   public java.util.Collection<Field> getField() {
      if (field == null)
         field = new java.util.HashSet<Field>();
      return field;
   }
   
   /** @pdGenerated default iterator getter */
   public java.util.Iterator getIteratorField() {
      if (field == null)
         field = new java.util.HashSet<Field>();
      return field.iterator();
   }
   
   /** @pdGenerated default setter
     * @param newField */
   public void setField(java.util.Collection<Field> newField) {
      removeAllField();
      for (java.util.Iterator iter = newField.iterator(); iter.hasNext();)
         addField((Field)iter.next());
   }
   
   /** @pdGenerated default add
     * @param newField */
   public void addField(Field newField) {
      if (newField == null)
         return;
      if (this.field == null)
         this.field = new java.util.HashSet<Field>();
      if (!this.field.contains(newField))
         this.field.add(newField);
   }
   
   /** @pdGenerated default remove
     * @param oldField */
   public void removeField(Field oldField) {
      if (oldField == null)
         return;
      if (this.field != null)
         if (this.field.contains(oldField))
            this.field.remove(oldField);
   }
   
   /** @pdGenerated default removeAll */
   public void removeAllField() {
      if (field != null)
         field.clear();
   }

}